package dao;

import entities.User;

import javax.sql.DataSource;
import java.util.List;

public interface UserDAO {

    public void setDataSource(DataSource ds);

    public void create(User user);

    public User getUser(String email);

    public List<User> listUsers();

    public void delete(String email);

    public void update(String email, String role);

    public List<User> getUsersByRole(String role);

    void updatePass(String name, String pass);
}